package com.huangjue.backend.service.impl;

import com.huangjue.backend.entity.Category;
import com.huangjue.backend.mapper.CategoryMapper;
import com.huangjue.backend.service.CategoryService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

@Service
public class CategoryServiceImpl implements CategoryService {
    @Resource
    private CategoryMapper categoryMapper;

    @Override
    public List<Category> getAllCategories() {
        return categoryMapper.selectAllCategories();
    }
}